package com.gupao.ldr.pattern.adapter;

import java.util.List;
import java.util.Map;
import java.util.stream.Collectors;

public class Converter implements IConverter {


    public Map<String, String> listToMap(List<String> list) {

        return list.stream().collect(Collectors.toMap(key1 -> key1, key2 -> key2));

    }
}
